using Baula.TextGen.Framework.Sections;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Baula.TextGen.Framework.Tests
{
    [TestClass]
    public class RelocationSectionTests
    {
        [TestMethod]
        public void Ctor_CalledWithProperHeadingLine_DoesNotSetRelocateTo()
        {
            var relocationSection = new RelocationSection("' @Section:TestSection");

            Assert.IsNull(relocationSection.RelocateTo);
        }

        [TestMethod]
        public void Ctor_CalledWithProperHeadingLine_SetsTargetSectionName()
        {
            var relocationSection = new RelocationSection("' @Section:TheTargetSectionName");

            Assert.AreEqual("TheTargetSectionName", relocationSection.TargetSectionName);
        }
    }
}